package com.ruoyi.common.core.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * 印章图片对象 seal_img
 *
 * @author ess
 * @date 2021-10-25
 */
public class SealImg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 印章图片id */
    private String imgId;

    /** 印章图像数据 */
    @Excel(name = "印章图像数据")
    private String imgData;

    /** 缩略图base64 */
    @Excel(name = "缩略图base64")
    private String imgThumbnailData;

    /** 印章图片hash */
    @Excel(name = "印章图片hash")
    private String imgHash;

    /** 图片高 */
    @Excel(name = "图片高")
    private int imgH;

    /** 图片宽 */
    @Excel(name = "图片宽")
    private int imgW;

    /** 图片格式 */
    @Excel(name = "图片格式")
    private String imgType;

    public void setImgId(String imgId)
    {
        this.imgId = imgId;
    }

    public String getImgId()
    {
        return imgId;
    }

    @NotBlank(message = "图像数据不能为空")
    public String getImgData()
    {
        return imgData;
    }
    public void setImgData(String imgData)
    {
        this.imgData = imgData;
    }
    public void setImgThumbnailData(String imgThumbnailData)
    {
        this.imgThumbnailData = imgThumbnailData;
    }

    public String getImgThumbnailData()
    {
        return imgThumbnailData;
    }
    public void setImgHash(String imgHash)
    {
        this.imgHash = imgHash;
    }

    public String getImgHash()
    {
        return imgHash;
    }
    public void setImgH(int imgH)
    {
        this.imgH = imgH;
    }

    public int getImgH()
    {
        return imgH;
    }
    public void setImgW(int imgW)
    {
        this.imgW = imgW;
    }

    public int getImgW()
    {
        return imgW;
    }
    public void setImgType(String imgType)
    {
        this.imgType = imgType;
    }

    public String getImgType()
    {
        return imgType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("imgId", getImgId())
            .append("imgData", getImgData())
            .append("imgThumbnailData", getImgThumbnailData())
            .append("imgHash", getImgHash())
            .append("imgH", getImgH())
            .append("imgW", getImgW())
            .append("imgType", getImgType())
            .toString();
    }
}
